package com.wzh.po;

import lombok.Data;

import java.util.List;

/**
 * @description:
 * @author: WZH
 * @time: 2021/5/20 8:50
 */
@Data
public class User {

    private String name;
    private Integer age;
    private String address;

    public List<User> friends;


    public User(String address) {
        this.address = address;
    }

    public User() {
    }

    public User(String name, Integer age, String address, List<User> friends) {
        this.name = name;
        this.age = age;
        this.address = address;
        this.friends = friends;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<User> getFriends() {
        return friends;
    }

    public void setFriends(List<User> friends) {
        this.friends = friends;
    }
}
